import request from '@/utils/request'

const api = {
    pageSop: 'qw/sop/page',
    saveSop: 'qw/sop/save',
    deleteSop: 'qw/sop/del',
    getSop: 'qw/sop/getSop',
    enabledSop: 'qw/sop/enabled'
}

export function enabledSop (parameter) {
    return request({
        url: api.enabledSop,
        method: 'get',
        params: parameter
    })
}

export function deleteSop (parameter) {
    return request({
        url: api.deleteSop,
        method: 'get',
        params: parameter
    })
}

export function saveSop (parameter) {
    return request({
        url: api.saveSop,
        method: 'post',
        data: parameter
    })
}

export function pageSop (parameter) {
    return request({
        url: api.pageSop,
        method: 'get',
        params: parameter
    })
}
export function getSop (parameter) {
    return request({
        url: api.getSop,
        method: 'get',
        params: parameter
    })
}
export default {
    pageSop,
    saveSop,
    deleteSop,
    enabledSop,
    getSop

}
